//
//  OrientationChangeView.swift
//  animations
//
//  Created by Ekaterina on 15.03.2023.
//

import SwiftUI

struct OrientationChangeView: View {
    var body: some View {
        OrientationStoryboard().ignoresSafeArea(.all)
    }
}

struct OrientationStoryboard: UIViewControllerRepresentable {
    func makeUIViewController(context: Context) -> UIViewController {
        let storyboard = UIStoryboard(name: "OrientationChangeStoryboard", bundle: Bundle.main)
        let controller = storyboard.instantiateInitialViewController() ?? UIViewController()
        return controller
    }
    
    func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) {
    }
}

struct OrientationChangeView_Previews: PreviewProvider {
    static var previews: some View {
        OrientationChangeView()
    }
}
